package dao

import (
	"gorm.io/gorm"
	"kf/models/entity"
)

type SysDictItemDao struct {
	DB *gorm.DB
}

func (sysDictItemDao *SysDictItemDao) List(dictId uint) []entity.SysDictItem {
	var dictItems []entity.SysDictItem
	sysDictItemDao.DB.Where("dict_id = ?", dictId).Find(&dictItems)
	return dictItems
}
